package com.zjc.yohoshop.mvp.contract;

import com.zjc.lib_core.mvp.model.IModel;
import com.zjc.lib_core.mvp.view.IView;
import com.zjc.yohoshop.bean.BaseEntity;
import com.zjc.yohoshop.bean.CouponListEntity;
import com.zjc.yohoshop.bean.HomeBannerEntity;
import com.zjc.yohoshop.bean.HomeGoodsEntity;
import com.zjc.yohoshop.bean.HomeRecommendEntity;
import com.zjc.yohoshop.bean.UpgradeEntity;

import java.util.Map;

import io.reactivex.Observable;

/**
 * 首页fragment订阅接口
 * */
public interface HomeFragmentContract {
    //首页fragmentIview接口
    interface HomeFragmentIView extends IView{
        void bannerSuccess(HomeBannerEntity entity);
        void recommendSuccess(HomeRecommendEntity entity);
        void goodsSuccess(HomeGoodsEntity entity);
        void couponlistSuccess(CouponListEntity entity);
        void UpgradeSuccess(UpgradeEntity entity);
    }
    //首页fragmentIModel接口
    interface HomeFragmentIModel extends IModel{
        Observable<BaseEntity> request(Map<String,String> map);
        Observable<HomeGoodsEntity> requestGoods(String requst);
        Observable<CouponListEntity> requestCouponList(String requst);
        Observable<UpgradeEntity> UpgradeCouponList(String requst);
    }
}
